<template>
    <div id="app">
        <transition name="slide-fade">
            <router-view />
        </transition>
    </div>
</template>

<script>
// 全局引入字体图标
import "../static/fontIcon/fontIcon.css";
export default {
    name: "App"
};
</script>

<style>
#app {
    font-family: "Avenir", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #2c3e50;
}
* {
    margin: 0;
    padding: 0;
    font-size: 22px;
    box-sizing: border-box;
}
.slide-fade {
    position: absolute;
    left: 0;
    right: 0;
}
.slide-fade-enter-active {
    transition: all 0.3s ease;
}
.slide-fade-leave-active {
    transition: all 0.3s ease;
}
.slide-fade-enter,
.slide-fade-leave-to {
    left: 0;
    right: 0;
    transform: translateX(150px);
    opacity: 0;
}
</style>
